﻿'
' Created by SharpDevelop.
' User: amb
' Date: 05/06/2014
' Time: 11:41
' 
' To change this template use Tools | Options | Coding | Edit Standard Headers.
'
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms
Imports JdFormsDll
Imports JdFormDll.Decorator


Public Partial Class MainForm
	
	Public Sub New()
		Me.InitializeComponent()
	End Sub
	
	Sub MainForm_Load(sender As Object, e As EventArgs)
		
		Dim v = [Enum].GetNames(GetType(JdFormDll.Decorator.MyFormDecoratorSettings))
		ToolStripComboBox1.Items.Clear()
		ToolStripComboBox1.Items.AddRange(v.ToArray())
		ToolStripComboBox1.SelectedIndex = 0
			
	End Sub
	
	Sub ToolStripComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
		JdFormDll.Decorator.Skins.CurrentDecorator = CType(ToolStripComboBox1.SelectedIndex, JdFormDll.Decorator.MyFormDecoratorSettings)
		JdFormDll.Decorator.Skins.SetDecorator(Me)
		toolStripStatusLabel1.Text = "Decorator from " + toolStripComboBox1.Text
		Me.Invalidate()
	End Sub
End Class
